
import request from '@/utils/request.js';



// 口碑列表接口
export const getkb = (curr,limit) => {
    return request({
        method: "get",
        url: "/koubei/list",
        params: {curr,limit}
    })
}

// 口碑总数接口
export const getkbtotal = () => {
    return request({
        method: "get",
        url: "/koubei/total"
    })
}


// 添加口碑接口
export const addkb = (data) => {
    return request({
        method: "post",
        url: "/koubei/add",
        data
    })
}

// 删除口碑接口
export const delkb = (id) => {
    return request({
        method: "post",
        url: "/koubei/del",
        data: { id: id }
    })
}

// 口碑列表接口, 获取一条口碑
export const getonekb = (id) => {
    return request({
        method: "get",
        url: "/koubei/getonekb",
        params: { id }
    })
}

// 编辑一条口碑
export const editonekb = (data) => {
    return request({
        method: "post",
        url: "/koubei/addonekb",
        data
    })
}